export default function messageBox(message: string) {
  return new Promise((resolve) => {
    ElMessageBox.confirm(message, "Warning", {
      confirmButtonText: "确认",
      cancelButtonText: "取消",
      type: "warning",
    })
      .then(() => {
        resolve(true);
      })
      .catch(() => {
        ElMessage({
          type: "info",
          message: "取消成功",
        });
      });
  });
}
